﻿using QMERP.SeedWork;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 批量订单详情
    /// </summary>
    public class BulkOrderDetail : Entity
    {
        public BulkOrderDetail() 
        {
            BulkOrderDetail_LensDetails = new HashSet<BulkOrderDetail_LensDetail>();
            BulkOrderDetail_MonofocalMaterialDetails = new HashSet<BulkOrderDetail_MonofocalMaterialDetail>();
            BulkOrderDetail_BifocalMaterialDetails = new HashSet<BulkOrderDetail_BifocalMaterialDetail>();
        }
        /// <summary>
        /// 直径
        /// </summary>
        public int? Diameter { get; set; }
        /// <summary>
        /// 包装信息
        /// </summary>
        public string? Packet { get; set; }
        /// <summary>
        /// 批量订单Id
        /// </summary>
        public long BulkOrderId { get; set; }
        /// <summary>
        /// 供应商Id
        /// </summary>
        public long SupplierId { get; set; }
        /// <summary>
        /// 仓库Id
        /// </summary>
        public long WarehouseId { get; set; }
        /// <summary>
        /// 合约镜种Id
        /// </summary>
        public long Contract_LensId { get; set; }
        /// <summary>
        /// 批量订单
        /// </summary>
        public virtual BulkOrder? BulkOrder { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public virtual Supplier? Supplier { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public virtual Warehouse? Warehouse { get; set; }
        /// <summary>
        /// 合约镜种
        /// </summary>
        public virtual Contract_Lens? Contract_Lens { get; set; }
        /// <summary>
        /// 批量订单详情的镜种详情列表
        /// </summary>
        public virtual ICollection<BulkOrderDetail_LensDetail> BulkOrderDetail_LensDetails { get; set;}
        /// <summary>
        /// 批量订单详情的毛料单光详情
        /// </summary>
        public virtual ICollection<BulkOrderDetail_MonofocalMaterialDetail> BulkOrderDetail_MonofocalMaterialDetails { get; set; }
        /// <summary>
        /// 批量订单详情的毛料双光详情
        /// </summary>
        public virtual ICollection<BulkOrderDetail_BifocalMaterialDetail> BulkOrderDetail_BifocalMaterialDetails { get; set; }
    }
}
